<?php
namespace teach\components;

use teach\util\helper\ResponseHelper;
use yii\web\ErrorHandler;

class Exception extends ErrorHandler
{
    public function renderException($exception)
    {
        echo json_encode(ResponseHelper::buildJsonData(401, "请求方式错误"));
        die;
    }
}